// ==========   安居宝相关 ============//
import constant from '@/utils/constant'
import request from '@/utils/request'


/**
 * 获取主机列表
 */
export function getHostList(data) {
    uni.showLoading({
        title: '加载中',
        mask: true,
    })
    return request({
        url: constant.getHostList, 
        method: 'GET',
        data
    })
}

/**
 * 获取分机列表
 */
export function getExtensionList(data) {
    uni.showLoading({
        title: '加载中',
        mask: true,
    })
    return request({
        url: constant.getExtensionList, 
        method: 'GET',
        data
    })
}

/**
 * 获取楼栋编号buildingNo
 */
export function getDigitalBuildingList(data) {
    return request({
        url: constant.getDigitalBuildingList, 
        method: 'GET',
        data
    })
}

/**
 * 获取开门记录
 */
export function getOpenLogsList(data) {
    uni.showLoading({
        title: '加载中',
        mask: true,
    })
    return request({
        url: constant.getOpenLogsList,
        method: 'POST',
        data
    })
}

